package model.commands;

import model.TurtleState;
import model.semantics.UnaryOperation;

public class Not extends UnaryOperation {

    public Not(String label) {
        super(label);
    }

    @Override
    protected Integer evaluateValue(TurtleState state, Integer value) {
        return value == 0 ? 1 : 0;
    }
}
